Previously, batch generated invoice items were sorted by Account Code, then by Item Date.
Also, if Sinking Fund is recorded as Liability, Sinking Fund 3101 appears before Maintenance Charges 6101.
A new setting is now available to sort invoice items by Item Date first.
Then, items with the same date will follow the Custom Sorting order set in Setting of Items for Batch Generation.
Go to Settings > Document Settings.
Under Invoice Settings, set Item Sorting to "By Item Date".
This will sort batch generated invoice items by date first.
Go to Charges > Setting of Items for Batch Generation.
In the Sorting column, enter the order you want items to appear when they have the same date.
Maintenance Charges = 1
Sinking Fund = 2
Then click Save.
Result of Revised Sorting:
After the setting changes, you may then batch generate invoices as per usual.